package com.sky.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.dto.PasswordEditDTO;
import com.sky.entity.Employee;
import com.sky.result.Result;

import java.sql.Wrapper;
import java.util.Map;

public interface EmployeeService extends IService<Employee> {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    void saveemployee(EmployeeDTO employeeDTO);

    IPage<Employee> listEmployee(IPage<Employee> employeeIPage, EmployeePageQueryDTO employee);

    Result startOrStop(Integer status, Long id);


    void editPassword(PasswordEditDTO map);
}
